<div class="login">
    <form class="d-b" name= 'form'>
        <input validator='phone' ng-model='user.phone' class="d-b" type="text" placeholder="输入手机号">
        <input validator='password' ng-model='user.password' class="d-b" type="password" placeholder="输入密码">
        <input validator='required' class="d-b" ng-model='user.code' type="" name="" placeholder="短信验证码">
        <button class="d-b {{time?'disabled':''}}" style="margin:0 auto 10px auto;background-color: rgba(0, 0, 0, .2)" ng-click='time?1==1:send()' ng-bind='time?time:"发送短信"'></button>
        <button class="d-b log-btn">登录</button>
        <button class="d-b reg-btn" validation-submit='form' ng-click='submit()'>注册</button>
    </form>
</div>